package com.hibiscusking.org.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.hibiscusking.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author hibiscusking
 * @since 2022-10-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BaseDomain{
    @Excel(name="店铺名称", orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name="店铺电话", orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name="创建日期", orderNum = "3", width = 30, isImportField = "true_st")
    private Date registerTime = new Date();
    /**
     * 店铺状态：0待审核，1待激活，-1驳回
     */
    @Excel(name="状态", replace = {"待审核_0","已审核_1","驳回_-1","已激活_2"}, orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name="店铺地址", orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name="店铺logo", orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    private Long adminId;
    // 员工
    private Employee admin;
    // 日志
    private List<ShopAuditLog> auditLogs  = new ArrayList<>();
}
